﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SYSEXTUD/MASTER/SYSEXTUDMasterPage.Master"
    AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="UD.SYSEXTUD.ESTUDIANTES.Add" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:HiddenField ID="hfIdEstudiante" runat="server" />
    <table width="80%" align="center">
        <tr>
            <td>
                Tipo de Documento *
                <asp:CompareValidator runat="server" ID="cvddlTipoDocumento" ControlToValidate="ddlTipoDocumento"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" ForeColor="Red" Operator="NotEqual"
                    ValueToCompare="-1" Display="Dynamic"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="rfvddlTipoDocumento" runat="server" ErrorMessage="Campo Requerido"
                    ForeColor="Red" ControlToValidate="ddlTipoDocumento" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
            <td>
                Número de Documento *
                <asp:RequiredFieldValidator runat="server" ID="rfvNumeroDocumento" ControlToValidate="txtNumeroDocumento"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddlTipoDocumento" runat="server" CssClass="select-chosen">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtNumeroDocumento" MaxLength="128" CssClass="form-control"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftNumeroDocumento" runat="server" TargetControlID="txtNumeroDocumento"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
            </td>
        </tr>
        <tr>
            <td>
                Género *
                <asp:RequiredFieldValidator runat="server" ID="rfvGenero" ControlToValidate="txtGenero"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                Primer Nombre *
                <asp:RequiredFieldValidator runat="server" ID="rfvPrimerNombre" ControlToValidate="txtPrimerNombre"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox runat="server" ID="txtGenero" CssClass="form-control"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftGenero" runat="server" TargetControlID="txtGenero"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPrimerNombre" Rows="3" CssClass="form-control"
                    TextMode="MultiLine" onKeyDown="limitText(this,256);" onKeyUp="limitText(this,256);"
                    MaxLength="256"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftPrimerNombre" runat="server" TargetControlID="txtPrimerNombre"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Segundo Nombre
            </td>
            <td>
                Primer Apellido *
                <asp:RequiredFieldValidator runat="server" ID="rfvPrimerApellido" ControlToValidate="txtPrimerApellido"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox runat="server" ID="txtSegundoNombre" CssClass="form-control" TextMode="MultiLine"
                    onKeyDown="limitText(this,256);" onKeyUp="limitText(this,256);"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftSegundoNombre" runat="server" TargetControlID="txtSegundoNombre"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPrimerApellido" Rows="3" CssClass="form-control"
                    TextMode="MultiLine" onKeyDown="limitText(this,256);" onKeyUp="limitText(this,256);"
                    MaxLength="256"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftPrimerApellido" runat="server" TargetControlID="txtPrimerApellido"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Segundo Apellido
            </td>
            <td>
                Fecha Nacimiento
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox runat="server" ID="txtSegundoApellido" CssClass="form-control" TextMode="MultiLine"
                    onKeyDown="limitText(this,256);" onKeyUp="limitText(this,256);"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftSegundoApellido" runat="server" TargetControlID="txtSegundoApellido"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFechaNacimiento" placeholder="dd/mm/yy" data-date-format="dd/mm/yy"
                    class="form-control input-datepicker text-center"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Id Municipio *
                <asp:CompareValidator runat="server" ID="cvddlMunicipios" ControlToValidate="ddlMunicipios"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" ForeColor="Red" Operator="NotEqual"
                    ValueToCompare="-1" Display="Dynamic"></asp:CompareValidator>
                &nbsp;<asp:RequiredFieldValidator ID="rfvddlMunicipios" runat="server" ErrorMessage="Campo Requerido"
                    ForeColor="Red" ControlToValidate="ddlMunicipios" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
            <td>
                Número Teléfono Fijo
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddlMunicipios" runat="server" CssClass="select-chosen">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtNumeroTelefonoFijo" MaxLength="20" CssClass="form-control"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftNumeroTelefonoFijo" runat="server" TargetControlID="txtNumeroTelefonoFijo"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Número Teléfono Móvil
            </td>
            <td>
                Direccion Residencia
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox runat="server" ID="txtNumeroTelefonoMovil" CssClass="form-control" onKeyDown="limitText(this,20);"
                    onKeyUp="limitText(this,20);"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftNumeroTelefonoMovil" runat="server" TargetControlID="txtNumeroTelefonoMovil"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDireccionResidencia" Rows="3" CssClass="form-control"
                    TextMode="MultiLine" onKeyDown="limitText(this,512);" onKeyUp="limitText(this,512);"
                    MaxLength="512"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftDireccionResidencia" runat="server" TargetControlID="txtDireccionResidencia"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Correo Electrónico *
                <asp:RequiredFieldValidator runat="server" ID="rfvCorreoElectronico" ControlToValidate="txtCorreoElectronico"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                Otros Detalles
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox runat="server" ID="txtCorreoElectronico" CssClass="form-control" onKeyDown="limitText(this,100);"
                    onKeyUp="limitText(this,100);"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftCorreoElectronico" runat="server" TargetControlID="txtCorreoElectronico"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtOtrosDetallesEstudiante" Rows="3" CssClass="form-control"
                    TextMode="MultiLine" onKeyDown="limitText(this,200);" onKeyUp="limitText(this,200);"
                    MaxLength="200"></asp:TextBox>
                <ajax:FilteredTextBoxExtender ID="ftOtrosDetallesEstudiante" runat="server" TargetControlID="txtOtrosDetallesEstudiante"
                    FilterType="Custom,LowercaseLetters,UppercaseLetters" ValidChars="/áéíóúÁÉÍÓÚñÑ .,@_():;" />
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                Estado Estudiante *
                <asp:RequiredFieldValidator runat="server" ID="rfvEstado" ControlToValidate="rblEstado"
                    SetFocusOnError="true" ErrorMessage="Campo Requerido" Display="Dynamic" ValidationGroup="btnGuardar"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:RadioButtonList runat="server" ID="rblEstado" RepeatDirection="Horizontal">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:RadioButtonList>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
